package net.tautausan.plist
{
   public class PNumber extends PlistElement
   {
       
      
      public function PNumber(param1:XML)
      {
         super(param1);
      }
      
      override public function get object() : *
      {
         if(!data)
         {
            if(x.name() == "real")
            {
               return parseFloat(x.toString());
            }
            if(x.name() == "integer")
            {
               return parseInt(x.toString(),10);
            }
         }
         return data;
      }
   }
}
